package com.fita.admin.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.fita.entity.set.SetCategory;
/**
 * 
 * @author sjh
 *
 */
@Dao("hibernate")
public interface SetCategoryDao {
	
	/**
	 * 
	 * @param code
	 * @return
	 */
	@Query("FROM SetCategory WHERE disabled = false AND code =:code")
   public SetCategory load(@Variable("code") String code);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	@Query("FROM SetCategory WHERE disabled = false id =:id")
   public SetCategory load(@Variable("id") Long id);
}
